this.unuseableButton4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.unuseableButton4.Location = new System.Drawing.Point(640, 72);
this.unuseableButton4.Name = "unuseableButton4";
this.unuseableButton4.Size = new System.Drawing.Size(32, 32);
this.kp_dot.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.kp_dot.Location = new System.Drawing.Point(704, 200);
this.kp_dot.Name = "kp_dot";
this.kp_dot.Size = new System.Drawing.Size(32, 32);
this.kp_dash.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.kp_dash.Location = new System.Drawing.Point(736, 72);
this.kp_dash.Name = "kp_dash";
this.kp_dash.Size = new System.Drawing.Size(32, 32);
this.home.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.home.Location = new System.Drawing.Point(552, 72);
this.semicol.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.semicol.Location = new System.Drawing.Point(360, 136);
this.semicol.Name = "semicol";
this.semicol.Size = new System.Drawing.Size(32, 32);
this.dash.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.dash.Location = new System.Drawing.Point(368, 72);
this.tilda.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.tilda.Location = new System.Drawing.Point(16, 72);
this.tilda.Name = "tilda";
this.tilda.Size = new System.Drawing.Size(32, 32);
MessageBox.Show("Failed to find the Steam Directory!\n\nYou will need to locate the file youself.", "Error Could not find the steam program folder",MessageBoxButtons.OK,MessageBoxIcon.Error);
errorFlag = true;
}
}
catch(Exception e)
{
e.ToString();
MessageBox.Show("CZ Bind Maker failed to find the Steam Directory!\n\nYou will need to locate the file youself.\n\nA file dialog box will now open and you can select it yourself", "Couldn't locate the config file",MessageBoxButtons.OK,MessageBoxIcon.Information);
errorFlag = true;
}
if(errorFlag)
{
// IF NONE FOUND OPEN DIALOG AND GET USER SETTINGS
// CASE: USER HIT CANCEL ON THE CONFIGURATION DIALOG
else
{
this.m_configFilePath = "";
this.m_bindFilePath = "";
this.m_userFilePath = "";
this.UserPreferencesSettingContainer.Write();
MessageBox.Show("You have to select your config file before you can save your custom binds!", "Can't save without a config file",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
}
if(!errorFlag)
{
this.LoadConfigFile();
}
#endregion
}
/// <summary>
/// Load the Config.cfg file from a file dialog box
if(MessageBox.Show("You Already have your Config.cfg File Set,\nWould You Like to Choose another?","Config File is Already Set",MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
// IF THE KEY IS A DUPLICATE, ASK IF THEY WANT TO REPLACE THE BIND
if(index != -1)
{
// IF YES, THEN INSERT IT AT INDEX'S POSITION
if(MessageBox.Show("A Bind For This Key Already Exists!\nDo You Wish To Replace It?","Duplicate Key Exists", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
MessageBox.Show("No config.cfg file was selected\nGo To the File menu and select Locate Config File","Error No File Selected",MessageBoxButtons.OK,MessageBoxIcon.Error);